﻿using Basic.FormRemoteModel;
using Basic.FormRemoteModel.Column.Model;
using SqlSugar;

namespace Basic.FormModel.Column
{
    public class ColumnStruct
    {
        public long Id { get; set; }

        public long TableId { get; set; }
        /// <summary>
        /// 列名
        /// </summary>
        public string ColName { get; set; }

        /// <summary>
        /// 控件类型
        /// </summary>
        public ControlType ColType { get; set; }
        /// <summary>
        /// 数据存储类型
        /// </summary>
        public FormRecordDataType DataType { get; set; }

        /// <summary>
        /// 功能类型
        /// </summary>
        public DataFuncType FuncType { get; set; }

        /// <summary>
        /// 控件配置
        /// </summary>
        public string ControlSet { get; set; }
        [SugarColumn(IsJson = true)]
        public ColumnFormula Formula { get; set; }

        /// <summary>
        /// 状态控制
        /// </summary>
        [SugarColumn(IsJson = true)]
        public ColumnFormula StateFormula { get; set; }

        /// <summary>
        /// 状态控制类型
        /// </summary>
        public FormStateControl StateControl { get; set; }

        /// <summary>
        /// 默认状态
        /// </summary>
        public FormStateControl DefState { get; set; }

    }
}
